Skip to content

Enable smart DCA IBKR runtime - #101

Merged
Pigbibi merged 1 commit into
mainfrom
codex/enable-smart-dca-ibkr
May 26, 2026
Merged

Enable smart DCA IBKR runtime#101
Pigbibi merged 1 commit into
mainfrom
codex/enable-smart-dca-ibkr

Conversation

@Pigbibi

@Pigbibi Pigbibi commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Issue

The IBKR platform did not yet expose the new Nasdaq/S&P 500 Smart DCA profile. The platform runtime also used a fixed 2% rebalance threshold, which is suitable for rotation strategies but can block intentional small DCA buy orders.

Cause and effect

Smart DCA emits buy-only value targets from market history plus the live portfolio snapshot. Without requiring the portfolio snapshot and without honoring the strategy-level execution threshold, a valid monthly DCA plan could be evaluated with incomplete context or skipped by the execution layer.

Fix

  • Pin us-equity-strategies to the merged smart DCA threshold release.
  • Add nasdaq_sp500_smart_dca to supported IBKR profiles and documentation.
  • Require portfolio_snapshot when the strategy contract or runtime adapter asks for it.
  • Include manifest managed_symbols in runtime metadata so QQQM/SPLG are priced and tracked.
  • Read execution_rebalance_threshold_ratio from strategy config, falling back to existing defaults.
  • Add Telegram display names for the new profile.

Validation

  • timeout 120 .venv/bin/ruff check strategy_runtime.py main.py notifications/telegram.py tests/test_strategy_runtime.py tests/test_runtime_config_support.py tests/test_connect_timeout_alert.py tests/test_notifications.py
  • timeout 180 .venv/bin/python -m pytest tests/test_strategy_runtime.py tests/test_strategy_loader.py tests/test_runtime_config_support.py -q
  • timeout 120 .venv/bin/python -m pytest tests/test_connect_timeout_alert.py tests/test_notifications.py tests/test_strategy_runtime.py tests/test_runtime_config_support.py -q
  • timeout 180 .venv/bin/python -m pytest -q

@Pigbibi
Pigbibi merged commit 5533f42 into main May 26, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/enable-smart-dca-ibkr branch May 26, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant